<#escape x as (x)!"">
<div class="page-dialog-content">
    <div class="panel-dialog">
		<form id="infoSaveForm" action="saveRole" method="post" class="form-horizontal form-dialog-horizontal">
			<input type="hidden" name="id" value="${info.id}"/>
			<div class="panel-dialog-body">
				<div class="form-group">
                    <label class="col-sm-3 control-label">登录名：</label>
                    <div class="col-sm-6 control-value">
                    	${info.loginName}
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">角色：</label>
                    <div class="col-sm-6 control-value">
                    	<#list roles as role>
                    		<label class="chkLab"><input type="checkbox" name="roleIds" <#if userRoleIds?seq_contains(role.id)>checked="checked"</#if> value="${role.id}" />${role.name}</label>
                    	</#list>
                    </div>
                </div>
			</div>
			
			<div class="panel-footer panel-dialog-footer">
				<div class="text-right">
					<button id="dialog-btn-save" type="submit" class="btn btn-primary">保存</button>
					<button type="button" onclick="layer.closeAll();" class="btn btn-default">取消</button>
				</div>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
	$(function(){
		frm.submit("dialog", "infoSaveForm");
	});
</script>
</#escape>
